<?php
	class InicioController extends ApplicationController {
		public $template = "main";  
	  	function index(){		    
			$Articulos = new Articulos();
			$hoy = date("Y-m-d");
			$articulos = array();
			foreach($Articulos->find("conditions: enviado_at='$hoy'") as $articulo)
			{
				$articulos[] = $articulo;
			}
			$this->articulos = $articulos;
		}
		
	}
		
?>
